package com.whut.controller;

import com.whut.service.PostService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/post")
public class PostController {
    @Resource
    private PostService postService;

    /**
     * @auther wenyihan
     * 获取所有认知类型，显示在el-select中
     * @date 17:34 2019/10/29
     * @param
     * @return java.lang.Object
    */
    @ResponseBody
    @PostMapping("/getAllServe")
    public Object getServeType(){return postService.getServeType();}
}
